<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:replace="top::html"/> <!-- 引入样式 -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>专家添加页面</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<body class="fixed hold-transition skin-blue">

	<div class="wrapper">
	
		<!-- 引入表头 -->
		<div th:replace="tophtml::html"></div>
		<!-- 引入左边 -->
		<div th:replace="left::html"></div>

		<!-- 右侧添加功能 -->
		<div class="content-wrapper">
			<!-- 页眉 -->
			<section class="content-header">
				<h1>添加专家</h1>
			</section>
			<section class="content container-fluid">
				<!-- 表单（添加了表单样式） class="form-inline" -->
					<form th:action="@{/conference/saveConferenceGuest}" method="POST" enctype="multipart/form-data" th:object="${person}">
					
						<input type="hidden" th:value="${pid}" class="form-control"
						name="conferencePid">
						
					<!-- 验证联系方式 -->
					<label for="enterpriseCN" th:class="${tclass}" th:style="${tstyle}" th:utext="${alert}"></label>
					<div class="form-group">
						<label><font color="red">*</font>专家来源：</label> 
						<!-- 非空验证 -->
						<p style="color: red;" th:if="${#fields.hasErrors('source')}" th:errors="*{source}">Error</p>
						<select name="source" class="form-control">
							<option>-请选择-</option>
							<option th:each="psd : ${sourceList}" th:value="${psd.pid}" th:text="${psd.worth}"></option>
						</select>
					</div>
					<div class="form-group">
						<label><font color="red">*</font>专家类型：</label> 
						<!-- 非空验证 -->
						<p style="color: red;" th:if="${#fields.hasErrors('type')}" th:errors="*{type}">Error</p>
						<select name="type" class="form-control">
							<option>-请选择-</option>
							<option th:each="psd : ${typeList}" th:value="${psd.pid}" th:text="${psd.worth}"></option>
						</select>
					</div>
					<label><font color="red">*</font>所属领域：</label>
					<!-- 非空验证 -->
					<p style="color: red;" th:if="${#fields.hasErrors('researchField')}" th:errors="*{researchField}">Error</p>
					<div class="form-group" th:each="field,iterStat : ${fieldList}">
						<input type="checkbox" name="researchField" th:value="${field.names}" th:text="${field.worth}">
					</div>
					<label><font color="red">*</font>所属地区：</label>
					<!-- 非空验证 -->
                    <!-- <p style="color: red;" th:if="${#fields.hasErrors('domesticOrForeign')}" th:errors="*{domesticOrForeign}">Error</p> -->
					<div class="form-group">
                        <div class="radio">
                            <label>
                                <input type="radio" name="domesticOrForeign" value="0" checked="checked"> 国内
                            </label>
                        </div>
                        <div class="radio">
                            <label>
                                <input type="radio" name="domesticOrForeign" value="1"> 国外
                            </label>
                        </div>
                    </div>
					<div class="form-group">
						<label><font color="red">*</font>省</label> 
						<select class="form-control form-area" id="provinceId">
							<option>--选择省--</option>
							<option th:each="list:${provinceDictiontryList}" th:value="${list.names}" th:text="${list.worth }"></option>
						</select>
					</div>
					<div class="form-group">
						<label><font color="red">*</font>市</label> 
						<select class="form-control form-area" id="cityId">
							<option>--选择市--</option>
						</select>
					</div>
					<div class="form-group">
						<label><font color="red">*</font>区</label> 
						<select class="form-control form-area" id="areaId" name="area">
							<option>--选择区--</option>
						</select>
					</div>
					<label>人才级别：</label>
					<div class="form-group" th:each="talentLevel,iterStat : ${talentLevelList}">
						<input type="checkbox" name="talentLevel" th:value="${talentLevel.names}" th:text="${talentLevel.worth}">
					</div>
					<div class="form-group">
						<label><font color="red">*</font>姓名：</label> 
						<input type="text" name="name" class="form-control" placeholder="姓名 ...">
						<!-- 非空验证 -->
						<p style="color: red;" th:if="${#fields.hasErrors('name')}" th:errors="*{name}">Error</p>
					</div>
					<div class="form-group">
						<label>性别：</label>
						<div class="radio">
							<label> <input type="radio" name="sex" value="1" >男</label>
							<label> <input type="radio" name="sex" value="2" >女</label>
						</div>
					</div>
					<div class="form-group">
						<label>出生日期:</label>
						<div class="input-group date">
							<div class="input-group-addon">
								<i class="fa fa-calendar"></i>
							</div>
							<input type="text" name="birth" class="form-control pull-right" id="datepicker">
						</div>
					</div>
					<div class="form-group">
						<label>籍贯：</label> 
						<input type="text" name="birthPlace" class="form-control" placeholder="省 市 区 ...">
					</div>
					<div class="form-group">
						<label for="exampleInputFile">附件：</label> 
						<!-- 将附件annex改为annex1,是为了避免file类型和string类型发生冲突 -->
						<input type="file" name="annex1">
					</div>
					<div class="form-group">
						<label>最高学历：</label> 
						<input type="text" name="maxEducation" class="form-control" placeholder="最高学历 ...">
					</div>
					<div class="form-group">
						<label>毕业院校及所学专业：</label> 
						<input type="text" name="schoolAndMajor" class="form-control" placeholder="院校 专业 ...">
					</div>
					<div class="form-group">
						<label>单位：</label> 
						<input type="text" name="unit" class="form-control" placeholder="单位 ...">
					</div>
					<div class="form-group">
						<label>职称：</label> 
						<input type="text" name="title" class="form-control" placeholder="职称 ...">
					</div>
					<div class="form-group">
						<label>专业领域：</label> 
						<input type="text" name="professionaField" class="form-control" placeholder="专业领域 ...">
					</div>
					<div class="form-group">
						<label><font color="red">*</font>固定电话：</label> 
						<input type="text" name="fixedPhone" id="fixedPhone" class="form-control" placeholder="固定电话 ...">
					</div>
					<div class="form-group">
						<label><font color="red">*</font>手机：</label> 
						<input type="text" name="tell" id="tell" class="form-control" placeholder="手机 ...">
					</div>
					<div class="form-group">
						<label><font color="red">*</font>邮箱：</label> 
						<input type="text" name="email" id="email" class="form-control" placeholder="邮箱 ...">
					</div>
					<div class="form-group">
						<label><font color="red">*</font>微信：</label> 
						<input type="text" name="wechat" id="wechat" class="form-control" placeholder="微信 ...">
					</div>
					<div class="form-group">
						<label><font color="red">*</font>其他联系方式：</label> 
						<input type="text" name="otherContact" id="otherContact" class="form-control" placeholder="其他联系方式 ...">
					</div>
					<div class="form-group">
						<label>教育背景：</label>
						<input type="text" class="form-control" name="education" placeholder="教育背景 ..."/>
					</div>
					<div class="form-group">
						<label>工作经历：</label>
						<input type="text" class="form-control" name="workExp" placeholder="工作经历 ...">
					</div>
					<div class="form-group">
						<label>荣誉奖励：</label>
						<input type="text" class="form-control" name="honorAward" placeholder="荣誉奖励 ...">
					</div>
					<div class="form-group">
						<label>科技成果：</label>
						<input type="text" class="form-control" name="technica" placeholder="科技成果 ...">
					</div>
					<div class="form-group">
						<label>备注1：</label> 
						<input type="text" name="remark1" class="form-control" placeholder="备注1 ...">
					</div>
					<div class="form-group">
						<label>备注2：</label> 
						<input type="text" name="remark2" class="form-control" placeholder="备注2 ...">
					</div>
					<div class="form-group">
						<label>备注3：</label> 
						<input type="text" name="remark3" class="form-control" placeholder="备注3 ...">
					</div>
					<div class="form-group">
						<label>备注4：</label> 
						<input type="text" name="remark4" class="form-control" placeholder="备注4 ...">
					</div>
					<div class="form-group">
						<label>备注5：</label> 
						<input type="text" name="remark5" class="form-control" placeholder="备注5 ...">
					</div>
					<button type="submit" class="btn btn-primary">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<button type="reset" class="btn btn-primary">重置</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<button type="button" class="btn btn-primary" onclick="window.history.go(-1)">返回</button>
				</form>
			</section>
		</div><!-- 右侧添加功能结束 -->
		
		<!-- 引入页脚 -->
		<div th:replace="footer::html"></div>
		<div class="control-sidebar-bg"></div> 
	</div>

	<script src="/bower_components/jquery/dist/jquery.min.js"></script>
	<script src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
	<script src="/dist/js/adminlte.min.js"></script>
	<script src="/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
	<script src="/bower_components/moment/min/moment.min.js"></script>
	<script src="/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
	<script src="/js/formValid.js"></script>
	
	<script type="text/javascript">
		//Date picker
		$('#datepicker').datepicker({
			autoclose : true
		})
	</script>
</body>
</html>